package com.lagou.sqlSession;

import com.lagou.pojo.MappedStatement;

import java.beans.IntrospectionException;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

//定义传统增删改查接口与通过动态代理方式调用接口
public interface SqlSession {

    public <E> List<E> selectList(String statementId, Object... param) throws Exception;

    public <E> E selectOne(String statementId, Object... param) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);

    public Integer updateTable(String statementId, Object... param) throws Exception;

    public Integer updateTableById(String statementId, Object... param) throws Exception;

    public Integer deleteTableById(String statementId, Object... param) throws Exception;

    public Integer deleteTable(String statementId, Object... param) throws Exception;
}
